<?php
Yii::import('application.models.dao.AuctionDao');
class TestauctionCommand extends CConsoleCommand{
      
    public function run($args){
        for ($i=1;$i <= 100;$i++){
            var_dump($i);
            
            $model=new AuctionDao('create');
            $model->attributes = array(
                'title' => 'auction:'.$i,
                'category_title' => '',
                'value_price' => '100',
                'auction_fee' => '100',
                'shipping_fee' => 10,
                'billing_fee' => 5
            );
            //$model->images =  $_POST['AuctionDao']['images'];
            $success = $model->save();
            var_dump($model->getErrors());die;
            var_dump($success);
        }
    }
}